package com.gitee.cashzhang27.test.sdk.bestsign.domain.request;

import cn.hutool.http.Method;
import com.gitee.cashzhang27.test.sdk.bestsign.domain.AbstractBestSignRequest;
import com.gitee.cashzhang27.test.sdk.bestsign.domain.BestSignRequest;
import com.gitee.cashzhang27.test.sdk.bestsign.domain.response.RealNamePersonalIdentity3VcodeVerifyResponse;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * 个人手机号三要素验证码校验
 *
 * @author Cash Zhang
 * @version v1.0
 * @since 2019/08/06 17:27
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class RealNamePersonalIdentity3VcodeVerifyRequest extends AbstractBestSignRequest implements
    BestSignRequest<RealNamePersonalIdentity3VcodeVerifyResponse> {

  /**
   * 手机验证码
   */
  private String vcode;
  /**
   * 用于验证的key
   */
  private String personalIdentity3Key;

  @Override
  public Class<RealNamePersonalIdentity3VcodeVerifyResponse> getResponseClass() {
    return RealNamePersonalIdentity3VcodeVerifyResponse.class;
  }


  @Override
  public String getMethodName() {
    return "/realName/personal/identity3/vcode/verify/";
  }

  @Override
  public Method getMethodType() {
    return Method.POST;
  }
}
